const mutations = {
  setLevelCode(state, val) {
    state.levelCode = val;
  },
  setUsername(state, val) {
    state.username = val;
  },
  // 地图点击标识
  upDataMapOrg(state, org) {
    state.org = org;
  },
  // 初始登录地址名称（苏州市）
  levelNameInit(state, name) {
    state.levelName = name;
  },
  SetCompanyActive(state, active) {
    state.companyActive = active;
  },
  setEvalActive(state, active) {
    state.evalActive = active;
  },
  setCompanyNameAndEid(state, nameAndEid) {
    state.companyNameAndEid = nameAndEid;
  },
  setRouterParameter(state, routerName) {
    state.routerParameter = routerName;
  },
  setSynergyFirstCompanyName(state, name) {
    state.synergyFirstCompanyName = name;
  },
  // 智能检索关键词
  setIRkeyword(state, name) {
    state.IRkeyword = name;
  },
  // 智能检索分面聚合参数
  setFacetParams(state, name) {
    state.facetParams = name;
  },
  // 行业观点检索内容
  setIndustryPointOfViewSearchTxt(state, name) {
    state.industryPointOfViewSearchTxt = name;
  },
  // ----------------智能检索
  setSearchWord(state, val) {
    // 检索词
    state.searchWord = val;
  },

  setAnalysisSearchWord(state, val) {
    state.analysisSearchWord = val;
  },
  // ----------------高级检索式存储
  setAdvancedSearchWord(state, val) {
    state.advancedSearchWord = val;
  },
  setFullSearchWord(state, val) {
    // 完整的检索式（包括左侧筛选项）
    state.fullSearchWord = val;
  },
  setDataSourceJSON(state, val) {
    // 选择数据源 数据结构
    state.dataSourceJSON = val;
  },
  setCreateSq(state, val) {
    // 选择数据源 生成的检索式
    state.createSq = val;
  },
  setSecondeSq(state, val) {
    // 二次检索
    state.secondeSq = val;
  },
  setHighlightSearchWord(state, val) {
    // 高亮检索词
    state.highlightSearchWord = val;
  },
  setHighlightKeyWords(state, val) {
    // 设置高亮关键词
    state.highlightKeyWords = val;
  },
  setHighlightModeSettings(state, val) {
    // 设置高亮模式
    state.highlightModeSettings = val;
  },
  setTopicType(state, val) {
    // 专利动态类型
    state.topicType = val;
  },
  setCurChartTempl(state, val) {
    // 当前模板选中的图表
    state.curChartTempl = val;
  },
  setCurChartConfig(state, val) {
    // 当前图表的自定义配置
    state.curChartConfig = val;
  },
  setDefaultTrans(state, val) {
    // 专利库列表-是否开启默认翻译
    state.defaultTrans = val;
  },
  setAnalysisScreen(state, val) {
    // 分析页面左侧聚类项
    state.analysisScreen = val;
  },
  setAnalysisChooseScreen(state, val) {
    // 分析图表筛选条件
    state.analysisChooseScreen = val;
  },
  setTechAnalysisKeyWords(state, val) {
    // 技术分析
    state.techAnalysisKeyWords = val;
  },
  setTotalTxt(state, val) {
    // 检索结果
    state.totalTxtSerch = val;
  }
};
export default mutations;
